* {
  margin: 0;
  padding: 0;
  list-style: none;
}

.iframe-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 400px;
  height: 500px;
  background: transparent;

  iframe {
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.main {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  perspective: 650px;

  .images {
    width: 100%;
    transform-style: preserve-3d;
    animation: roll 30s infinite linear;

    @keyframes roll {
      0% {
        transform: rotateX(-10deg) rotateY(0deg);
      }
      100% {
        transform: rotateX(-10deg) rotateY(360deg);
      }
    }

    &:hover {
      animation-play-state: paused;
    }

    li {
      position: absolute;
      float: right;
      width: 100%;
      transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(400px);

      img {
        width: 100%;
        height: 150px;
        border-radius: 16px;
        transition: 0.3s linear;
        cursor: pointer;
        &:hover {
          transform: scale(1.2);
        }
      }
    }
  }
}

footer {
  position: absolute;
  bottom: 8%;
  left: 50%;
  display: flex;
  align-items: baseline;
  transform: translateX(-50%);

 span:nth-child(1){
   background: #a9d6ff;
   padding: 5px 10px;
   border-radius: 16px;
   letter-spacing: 2px;
 }
  span:nth-child(2){
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 5px 20px;
  }
}